package mobilesearch.data;

import android.os.Parcel;
import android.os.Parcelable;
import android.util.Log;

public class VideoData implements Parcelable {

	private static final String TAG = "VideoData";

	private String videoId;
	private String videoName;
	private String videoTime;
	
	public VideoData() {
		Log.i(TAG, "VideoData");
	}
	
	private VideoData(Parcel source){
		this.videoId = source.readString();
		this.videoName = source.readString();
		this.videoName = source.readString();
	}

	@Override
	public int describeContents() {
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeString(this.videoId);
		dest.writeString(this.videoName);
		dest.writeString(this.videoTime);
	}

	public static final Parcelable.Creator<VideoData> CREATOR = new Parcelable.Creator<VideoData>() {

		@Override
		public VideoData createFromParcel(Parcel source) {
			return new VideoData(source);
		}

		@Override
		public VideoData[] newArray(int size) {
			return new VideoData[size];
		}
		
	};

	public String getVideoId() {
		return videoId;
	}

	public void setVideoId(String videoId) {
		this.videoId = videoId;
	}

	public String getVideoName() {
		return videoName;
	}

	public void setVideoName(String videoName) {
		this.videoName = videoName;
	}

	public String getVideoTime() {
		return videoTime;
	}

	public void setVideoTime(String videoTime) {
		this.videoTime = videoTime;
	}
	
	
}
